package com.hwadee.backend.entity.HealthRecord;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.sql.Date;

@Setter
@Getter
@ToString
@TableName("record")
public class HealthRecord {
    @TableId(value = "recordid", type = IdType.AUTO)
    private int recordId;
    @TableField(value = "recorddate")
    private Date recordDate;
    @TableField(value = "recordtype")
    private String recordType;
    private String detail;

    public HealthRecord(int recordId, Date recordDate, String recordType, String detail) {
        this.recordId = recordId;
        this.recordDate = recordDate;
        this.recordType = recordType;
        this.detail = detail;
    }

    public HealthRecord() {}
}
